
package exam.test;

import java.io.FileReader;

import org.apache.poi.hssf.extractor.ExcelExtractor;

public class yeah {
//test	
	public static void main(String[] args) {
	
		double[] price = new double[6];
		double[] coin = new double[6];
		double[] result = new double[6];
		
		double[] priceumpyo = new double[6];
		double[] umpyo = new double[6];
		double[] resultumpyo = new double[6];
		
		double temp;
		double nobonus;
		double[] onegame = new double[6];
		
		price[0] = 1100;
		price[1] = 3300;
		price[2] = 5500;
		price[3] = 11000;
		price[4] = 33000;
		price[5] = 55000;

		coin[0] = 10;
		coin[1] = 35;
		coin[2] = 60;
		coin[3] = 130;
		coin[4] = 450;
		coin[5] = 800;
		
		priceumpyo[0] = 5;
		priceumpyo[1] = 10;
		priceumpyo[2] = 30;
		priceumpyo[3] = 50;
		priceumpyo[4] = 70;
		priceumpyo[5] = 100;
		
		umpyo[0] = 5;
		umpyo[1] = 11;
		umpyo[2] = 40;
		umpyo[3] = 70;
		umpyo[4] = 110;
		umpyo[5] = 170;
		
		System.out.println("Bonus percentage coin");
		for(int i=0; i<price.length; i++){
			temp = price[i]/price[0];
			nobonus = temp*coin[0];
			result[i] = coin[i]/nobonus-1;
			
			System.out.println(result[i]);
			
			temp = 0;
			nobonus = 0;
		}
		
		System.out.println("Price per game");
		for(int i = 0; i < price.length; i++){
			onegame[i] = price[i]/coin[i];
			System.out.println(onegame[i]);
			
		}
		
		System.out.println("Bonus percentage umpyo");
		for(int i=0; i<price.length; i++){
			temp = priceumpyo[i]/priceumpyo[0];
			nobonus = temp*umpyo[0];
			resultumpyo[i] = umpyo[i]/nobonus-1;
			
			System.out.println(resultumpyo[i]);
			
			temp = 0;
			nobonus = 0;
		}
		
		
		
		
		
		
		
		
		
	}

}
